function checkPhone(){
    var docPhone = document.getElementById("docPhone");
    var regex = /^1[3-9]\d{9}$/;
    if (docPhone.value == "") {
        docPhone.classList.add("wrong");
        alert("手机号不能为空!");
        return false;
    } else {
        if (!regex.test(docPhone.value)) {
            docPhone.classList.add("wrong");
            alert("手机号格式不正确!");
            return false;
        }else{
            docPhone.classList.remove("wrong");
            return true;
        }
    }
}

function controlSubmit(){
    var subBtn = document.getElementById("subBtn");
    subBtn.disabled = false;
}

function changeForm(){
    checkName();

    if(checkName()){
        return true;
    }else{
        return false; //阻止表单提交
    }
}